package agriculture.bean;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;
@Data
public class Product {
    private Long id;
    private String title;
    private String imgUrl;
    private BigDecimal price;
    private Integer paidCount = 0;
    private String description;
    private Long categoryId;
    private Integer stock = 0;
    private String region;
    private String brand;
    /**
     * status: 1 表示上架，0 表示下架
     */
    private Integer status = 1;
    private Timestamp createTime;
    private Timestamp updateTime;

    //乐观锁判断字段
    private Integer version;
}
